package com.wceManage.data.mapper;

import java.util.HashMap;

import com.wceManage.beans.SysUser;

/**
 * SysUserMapper 系统用户
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

	/**
	 * 根据用户登录账号获取用户信息
	 * 
	 * @param account
	 * @return
	 */
	SysUser queryUserByAccount(String account);

	/**
	 * 根据用户账户修改用户密码
	 * 
	 * @param param
	 * @return
	 */
	int updateUserPwd(HashMap<String, String> param);

	/**
	 * 删除用户角色关联数据
	 * 
	 * @param sysUser
	 * @return
	 */
	int deleteUserRole(SysUser sysUser);

	/**
	 * 插入用户角色关联数据
	 * 
	 * @param sysUser
	 * @return
	 */
	public int insertUserRole(SysUser sysUser);

	SysUser queryDetail(Long id);
	
	/**
	 * 根据账号（手机号）等条件查询用户
	 * @param sysUser
	 * @return
	 */
	SysUser queryUser(SysUser sysUser);

	int deleteByPrimaryKey(Long userId);
}
